home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Contributed Scores
/
Piano Inventions
/
Invention 4
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
2KB
|
76 lines
; Invention IV - solo keyboard
(create-tonality clusters '(c 3 c# 3 f 3 f# 3 g 3 b 3))
(create-tonality spaces '(c 3 c# 3 d# 3 f# 3 b 3 f 4 c 4 g# 4 e 5))
(setq chord1 (activate-tonality (clusters c 5))
chord2 (activate-tonality (clusters c# 5))
chord3 (activate-tonality (clusters f# 3))
)
(setq tonal (activate-tonality (spaces c 3))
tonal1 (activate-tonality (spaces c 5 ))
)
(setq row '(a d c f =))
(defsym a '(ab cd df))
(defsym b (append row '(bc def)))
(defsym f '(b a f = cdf))
(setq rhy1 '(1/32)
rhy2 (vector-to-list (vector-round 12 384
(gen-sin 2 0.7 32 120)))
rhy3 (gen-loop '(1 4 3 2)'(24 36 48 60))
rhy4 '(-96 48 48 1/4-5 1/4-5 1/4-5 1/4-5 1/4-5)
)
(setq mel1 (gen-trans a 2)
mel2 (gen-notrans b 2)
mel3 (gen-notrans f 2)
mel4 (fill-template rhy2 (symbol-repeat 2 row))
)
(setq vel1 '(112 96 84 72)
vel2 (vector-to-list (vector-round 30 120
(gen-sin 2 0.7 32 120)))
vel3 (reverse (change-length times 3 rhy3))
vel4 '(0 20 40 60 65 70 75 80)
)
(def-symbol
line1 mel1
line2 mel2
line3 mel3
line4 mel4
line5 mel3
)
(def-length
line1 rhy4
line2 rhy2
line3 rhy3
line4 rhy1
line5 (append rhy4 rhy3 rhy2)
)
(def-velocity
line1 vel4
line2 vel2
line3 vel3
line4 vel1
line5 (append vel4 vel3 vel2)
)
(compile-song "ccl;output:" 1/2 "invention4
; BARS |--|----|---|-|--|---|----|-|
line1 tonal1 "- - --- -- --- -"
line2 chord1 " - -- ----- "
line3 chord2 " - -- - -- "
line4 chord3 "--- - -- "
line5 tonal " --- --- - - ---- -"
)